package com.cndw.kungfu.event.model;

import com.cndw.kungfu.config.ConstantsConfig;
import com.cndw.kungfu.ext.LogUtil;
import com.cndw.kungfu.model.DataStaticCenter;
import com.cndw.kungfu.model.pvp.api.ApiCore;
import com.cndw.kungfu.model.pvp.api.CommApiClient;

public class MJonlineHandler implements Runnable {

	@Override
	public void run() {

		int onlineNum = 0;
		if (ApiCore.isCrossServer() && !ConstantsConfig.isLocalHost()) {
			onlineNum = CommApiClient.allMJOnLine();
		}
		int currentNUm = DataStaticCenter.flashMJOnLineNum();
		if (currentNUm == 0 && onlineNum ==0) {
			return ;
		}

		LogUtil.getQQDC().info("MJ online " + onlineNum + " | " + currentNUm);

	}

}
